<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://www.unpkg.com/ew-color-picker/dist/ew-color-picker.min.css">
</head>

<body>
    <div></div>
    <!-- <script src="https://www.unpkg.com/ew-color-picker/dist/ew-color-picker.js"></script> -->
    <script src="https://www.unpkg.com/ew-color-picker/dist/ew-color-picker.js"></script>
    <script>
        const color = new ewColorPicker({
            el: 'div',
            // hasBox:false,
            isClickOutside:false,
            hueDirection:"horizontal",
            alphaDirection:"horizontal",
            alpha:true,
            // openChangeColorMode:true,
            changeColor:(color) => {
                console.log(color);
            },
            predefineColor:["red"],
            defaultColor:"red"
        });
    </script>
</body>

</html>